home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
qh_tail.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
644b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ Return the queue_tail associated with this queue.
/ If it doesn't already exist, create it.
ueue_tail *queue_head::tail()
if (debug) /*DELETE*/ cerr << "queue_head" << this << "::tail()\n";
process_queue *q = qh_queue;
register queue_tail *t = q->q_tail;
if (!t)
{
q->q_tail = t = new queue_tail(qh_mode, 0);
t->qt_queue = q;
}
if (debug) /*DELETE*/ cerr << "<<<< queue_head" << this << "::tail() <- " << t << "\n";
return t;